<textarea id="table-1">
<table>
	<tr>
		<td>fo^o</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
</table>
=>
<table>
	<tbody>
	<tr>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>bar</td>
		<td>baz</td>
	</tr>
	</tbody>
</table>
</textarea>

<textarea id="table-2">
<table>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>b[ar</td>
		<td>ba]z</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
</table>
=>
<table>
	<tbody>
	<tr>
		<td>foo</td>
	</tr>
	<tr>
		<td>foo</td>
	</tr>
	<tr>
		<td>foo</td>
	</tr>
	</tbody>
</table>
</textarea>

<textarea id="table-3">
<table>
	<thead>
		<tr>
			<th colspan="2" scope="col">
				He[ad]er1
			</th>
			<th colspan="1" scope="col">
				Header2
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	</tbody>
</table>
=>
<table>
	<thead>
		<tr>
			<th colspan="1" scope="col">
				Header2
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>baz</td>
	</tr>
	<tr>
		<td>baz</td>
	</tr>
	<tr>
		<td>baz</td>
	</tr>
	</tbody>
</table>
</textarea>

<textarea id="table-4">
<table>
	<thead>
		<tr>
			<th colspan="3" scope="col">
				Header
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>b^az</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	</tbody>
</table>
=>
<table>
	<thead>
		<tr>
			<th colspan="2" scope="col">
				Header
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>foo</td>
		<td>bar</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
	</tr>
	</tbody>
</table>
</textarea>

<textarea id="table-5">
<table>
	<thead>
		<tr>
			<th colspan="3" scope="col">
				Header1
			</th>
			<th colspan="3" scope="col">
				Header2
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>b[az</td>
		<td>fo]o</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	</tbody>
</table>
=>
<table>
	<thead>
		<tr>
			<th colspan="2" scope="col">
				Header1
			</th>
			<th colspan="2" scope="col">
				Header2
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	</tbody>
</table>
</textarea>

<textarea id="table-6">
<table>
	<thead>
		<tr>
			<th colspan="3" scope="col">
				Header1
			</th>
			<th colspan="3" scope="col">
				Header2
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
		<td>fo[o</td>
		<td>bar</td>
		<td>b]az</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	</tbody>
</table>
=>
<table>
	<thead>
		<tr>
			<th colspan="3" scope="col">
				Header1
			</th>
		</tr>
	</thead>
	<tbody>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	</tbody>
</table>
</textarea>

<textarea id="table-7">
<table>
	<tr>
		<td>[foo</td>
		<td>bar</td>
		<td>baz]</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
	<tr>
		<td>foo</td>
		<td>bar</td>
		<td>baz</td>
	</tr>
</table>
=>

</textarea>
